public class Global
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AGENT_REPOSITORY
Path to agent repository
|
static java.lang.String |
DOMAIN_REPOSITORY
Path to domain repository
|
static java.lang.String |
logPrefix |
static java.lang.String |
PROTOCOL_REPOSITORY
Path to protocol repository
|
| Constructor and Description |
|---|
Global() |
| Modifier and Type | Method and Description |
|---|---|
static Protocol |
createProtocolInstance(ProtocolRepItem protRepItem,
AgentRepItem[] agentRepItems,
ProfileRepItem[] profileRepItems,
java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams) |
static Protocol |
createProtocolInstance(ProtocolRepItem protRepItem,
AgentRepItem[] agentRepItems,
ProfileRepItem[] profileRepItems,
java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams,
java.lang.ClassLoader classLoader) |
static java.lang.String |
getAgentDescription(Agent agent)
Gives a useful agent name.
|
static AgentsLoader |
getAgentsLoader() |
static java.lang.String |
getBinaryRoot() |
static java.lang.String |
getCurrentTime() |
static java.lang.String |
getDistributedOutcomesFileName() |
static java.lang.String |
getExtensiveOutcomesFileName() |
static java.lang.String |
getFileNameWithoutExtension(java.lang.String fileName) |
static java.lang.String |
getLocalDirName() |
static java.lang.String |
getOQMOutcomesFileName() |
static java.lang.String |
getOutcomesFileName() |
static java.lang.Class<Protocol> |
getProtocolClass(ProtocolRepItem protRepItem) |
static java.lang.Class<Protocol> |
getProtocolClass(ProtocolRepItem protRepItem,
java.lang.ClassLoader loader) |
static java.lang.String |
getTournamentOutcomeFileName() |
static boolean |
isJar() |
static Agent |
loadAgent(java.lang.String agentClassName) |
static Agent |
loadAgent(java.lang.String agentClassName,
java.lang.String variables) |
static void |
setAgentsLoader(AgentsLoader agentsLoader) |
public static final java.lang.String DOMAIN_REPOSITORY
public static final java.lang.String AGENT_REPOSITORY
public static final java.lang.String PROTOCOL_REPOSITORY
public static java.lang.String logPrefix
public static java.lang.String getCurrentTime()
public static java.lang.String getLocalDirName()
public static java.lang.String getFileNameWithoutExtension(java.lang.String fileName)
public static java.lang.Class<Protocol> getProtocolClass(ProtocolRepItem protRepItem) throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Class<Protocol> getProtocolClass(ProtocolRepItem protRepItem, java.lang.ClassLoader loader) throws java.lang.Exception
java.lang.Exceptionpublic static Protocol createProtocolInstance(ProtocolRepItem protRepItem, AgentRepItem[] agentRepItems, ProfileRepItem[] profileRepItems, java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams) throws java.lang.Exception
java.lang.Exceptionpublic static Protocol createProtocolInstance(ProtocolRepItem protRepItem, AgentRepItem[] agentRepItems, ProfileRepItem[] profileRepItems, java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams, java.lang.ClassLoader classLoader) throws java.lang.Exception
java.lang.Exceptionpublic static Agent loadAgent(java.lang.String agentClassName) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.ClassNotFoundExceptionpublic static Agent loadAgent(java.lang.String agentClassName, java.lang.String variables) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.ClassNotFoundExceptionpublic static java.lang.String getAgentDescription(Agent agent)
public static AgentsLoader getAgentsLoader()
public static void setAgentsLoader(AgentsLoader agentsLoader)
agentsLoader - the agentsLoader to setpublic static java.lang.String getOutcomesFileName()
public static java.lang.String getDistributedOutcomesFileName()
public static java.lang.String getTournamentOutcomeFileName()
public static java.lang.String getExtensiveOutcomesFileName()
public static java.lang.String getOQMOutcomesFileName()
public static java.lang.String getBinaryRoot()
public static boolean isJar()